@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './pages/common.scss';
@import './login.scss';
@import './pages/asset/index.scss';

@font-face {
  font-family: 'YouSheBiaoTiHei';
  src: url('./fonts/YouSheBiaoTiHei.ttf');
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
menu,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
main,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: PingFangSC-Regular, PingFang SC, helvetica neue, arial,
    hiragino sans gb, microsoft yahei ui, microsoft yahei, simsun, sans-serif;
}
button,
input,
optgroup,
select,
textarea {
  font-family: PingFangSC-Regular, PingFang SC, helvetica neue, arial,
    hiragino sans gb, microsoft yahei ui, microsoft yahei, simsun, sans-serif;
}
label {
  font-weight: 400;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  //   padding: 20px 15px;
  overflow: auto;
  padding: 16px;
  //   background: #FFF;
  // min-height: 700px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

// 凡是全局样式，必须要加前缀 global-
.global-custom-upload-style {
  & > .el-dialog {
    width: 400px;

    .el-dialog__body {
      padding: 0 20px;
    }
  }
}

.global-custom-transfer {
  display: flex;

  & .el-transfer-panel {
    flex: 1;
  }

  & .el-transfer__buttons {
    display: flex;
    align-items: center;
  }

  & .el-transfer__button:first-child {
    margin-bottom: 0;
  }
}

.global-custom-header-bg {
  & .el-table__header th {
    background: #e6edf3;
  }
}

.global-custom-loading {
  & .el-loading-text {
    font-size: 20px;
  }

  & .el-icon-loading {
    font-size: 32px;
  }
}

.global-custom-code-loading {
  & .el-loading-spinner {
    margin-top: -14px;

    & i {
      color: #1890ff;
      font-size: 20px;
    }
  }
}

// 表格滚动影响
.global-custom-table-scroll {
  .el-table__body-wrapper {
    // overscroll-behavior: auto;
  }
}

.el-table__empty-block {
  width: 100% !important;
}

.el-tooltip__popper {
  max-width: 408px;
}
// tooltip 新增blue颜色
.el-tooltip__popper.is-blue {
  background: $blue-tips-bg;
  color: #ffffff;

  & .popper__arrow {
    border-top-color: $blue-tips-bg;

    &::after {
      border-top-color: $blue-tips-bg;
    }
  }
}

// 登录页面
// .login-form .input-with-select .el-input input,
// .login-form .input-with-select>input {
//   padding-left: 5px !important;
// }

.input-with-select {
  .el-input-group__append {
    background: transparent;
  }

  .el-input-group__prepend,
  .el-select .el-input .el-select__caret {
    color: #262626;
  }
}

.login-form .el-button--primary {
  background: #3366ff;
  border-color: #3366ff;
  border-radius: 2px;

  &:hover {
    background: #4772f1;
    border-color: #4772f1;
  }
}

.el-form-item
  .input-with-select
  .el-input-group__prepend
  .el-input__validateIcon {
  display: none !important;
}

.global-login-tab .el-tabs__active-bar {
  background-color: #3366ff;
}

.global-login-tab .el-tabs__item.is-active {
  color: #3366ff;
}

.global-login-tab .el-tabs__item:hover {
  color: #3366ff;
}

.global-login-tab .el-tabs__nav-wrap::after {
  background-color: #ffffff;
}
.global-login-code {
  width: 70px;
  height: 34px;
  position: absolute;
  right: 0;
  bottom: 2px;
  img {
    width: 100%;
    height: 100%;
  }
}

// 全局覆盖sec-ui样式
.el-form-item--medium .el-form-item__content,
.el-form-item--medium .el-form-item__label {
  line-height: 32px;
}

.el-button + .el-button,
.el-checkbox.is-bordered + .el-checkbox.is-bordered {
  margin-left: 8px;
}

.el-table--mini {
  border-color: #f0f0f0;
  border-width: 1px 1px 0 1px;
  border-style: solid;
}

.el-tooltip__popper {
  padding: 8px;
  text-align: justify;
}
